/********************************************************************************
 *      Copyright:  (C) 2022 iot<iot@email.com>
 *                  All rights reserved.
 *
 *       Filename:  mosquitto.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(24/03/22)
 *         Author:  iot <iot@email.com>
 *      ChangeLog:  1, Release initial version on "24/03/22 12:47:43"
 *                 
 ********************************************************************************/

#ifdef      _MOSQUITTO_H_
#define     _MOSQUITTO_H_

struct mosquitto;
typedef  void (*mosq_callback_t)(struct mosquitto *,void *);
struct  mosquitto
{

	void                       *user_data;
	mosq_callback_t             conn_cb;
	mosq_callback_t             disc_cb;

};
struct  mosquitto *mosquitto_new(void *args);
int     mosquitto_connect_callback_set(struct mosquitto *mosq,mosq_callback_t  cb);
int     mosquitto_disconnect_callback_set(struct mosquitto *mosq,mosq_callback_t cb);
int     mosquitto_loop_foerver(struct mosquitto *mosq);

#endif

